home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15425 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newshost.cyberramp.net!news
  2. From: sinan@cyberramp.net (John L. Noland)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem w/simple linked list
  5. Date: 18 Apr 1996 23:40:24 GMT
  6. Organization: Uno mas por favor
  7. Message-ID: <4l6jt8$t5o@newshost.cyberramp.net>
  8. References: <4l5eha$5qa@news.duke.edu>
  9. NNTP-Posting-Host: ramp1-6.cyberramp.net
  10. X-Newsreader: WinVN 0.99.5
  11.  
  12. In article <4l5eha$5qa@news.duke.edu>, stking@acpub.duke.edu says...
  13. >
  14. >Folks, I'm forgetting something here. Here's my problem. I'm
  15. >trying to compare a name I input with the names already
  16. >stored in nodes in my linked list. If there's a match,
  17. >I want to delete that node. However, I can't ever seem to
  18. >get a match using "strcmp()."  
  19. >
  20.  
  21. Have you tried stepping through the code in a debugger? It's
  22. a simple thing to do. If you provide a complete program for
  23. us, we can do it also. Without complete code, we have to guess
  24. and make assumptions to get the program to compile. This doesn't
  25. work very well and really isn't worth the effort. You don't have to 
  26. post your entire program, but a complete example(with all data 
  27. definitions) is helpful. 
  28. Someone may be able to simply look at your code and tell you where 
  29. the problem is. If not, follow my advice and either debug it yourself
  30. or post enough code for us to do it for you.
  31.  
  32. -John
  33.  
  34.